using System;
using System.ComponentModel;
using System.Collections;
using System.Diagnostics;
using System.Data;
using System.Data.SqlClient;
using System.Xml;
using System.Reflection;
using Microsoft.Win32;
using System.IO;
using Srvtools;
using System.Security;
using System.Security.Permissions;

namespace sGsmShip
{
    /// <summary>
    /// Summary description for Component.
    /// </summary>
    public class Component : DataModule
    {
        private UpdateComponent ucMaster;
        private ServiceManager serviceManager;
        private InfoCommand Master;
        private InfoCommand Detail;
        private InfoDataSource idsRelation;
        private UpdateComponent ucDetail;
        private InfoConnection infoConnection;
        private InfoCommand ORD_D;
        private AutoNumber NO_SHIP;
        private InfoTransaction trans;
        private InfoCommand INVT_TX;
        private UpdateComponent ucINVT_TX;
        private AutoNumber autoNumber1;
        private InfoCommand MasterView;
        private InfoCommand RPT_Master;
        private InfoCommand RPT_Detail;
        private InfoDataSource infoDataSource1;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components;

        public Component(System.ComponentModel.IContainer container)
        {
            ///
            /// Required for Windows.Forms Class Composition Designer support
            ///
            container.Add(this);
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        public Component()
        {
            ///
            /// This call is required by the Windows.Forms Designer.
            ///
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }
        // ///////////
        public string GetFixed_SHIP()
        {
            return string.Format("SP{0:yyMM}", DateTime.Now.Date);
        }

        public object GetWH()
        {
            return ucMaster.GetFieldCurrentValue("ID_WH").ToString();
        }       

        public object GetINVT()
        {
            return "SP";
        }

        public object GetDT()
        {
            return ucMaster.GetFieldCurrentValue("DT_SHIP").ToString();
        }

        public object GetINQ()
        {
            return ucMaster.GetFieldCurrentValue("NO_INQ").ToString();
        }

        public object  GetUser()
        {
            return ucMaster.GetFieldCurrentValue("CREATE_USER").ToString();
        }

        public string GetToday()
        {
            return string.Format("{0:yyyyMMdd}", DateTime.Now.Date); 
        }

        public string GetNowTime()
        {
            return string.Format("{0:hhmmss}", DateTime.Now);
        }

        
       
                              
        #region Component Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Component));
            Srvtools.KeyItem keyItem1 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem2 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem3 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem4 = new Srvtools.KeyItem();
            Srvtools.ColumnItem columnItem1 = new Srvtools.ColumnItem();
            Srvtools.ColumnItem columnItem2 = new Srvtools.ColumnItem();
            Srvtools.KeyItem keyItem5 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem6 = new Srvtools.KeyItem();
            Srvtools.Transaction transaction1 = new Srvtools.Transaction();
            Srvtools.TransField transField1 = new Srvtools.TransField();
            Srvtools.TransKeyField transKeyField1 = new Srvtools.TransKeyField();
            Srvtools.TransKeyField transKeyField2 = new Srvtools.TransKeyField();
            Srvtools.Transaction transaction2 = new Srvtools.Transaction();
            Srvtools.TransField transField2 = new Srvtools.TransField();
            Srvtools.TransField transField3 = new Srvtools.TransField();
            Srvtools.TransField transField4 = new Srvtools.TransField();
            Srvtools.TransField transField5 = new Srvtools.TransField();
            Srvtools.TransField transField6 = new Srvtools.TransField();
            Srvtools.TransField transField7 = new Srvtools.TransField();
            Srvtools.TransField transField8 = new Srvtools.TransField();
            Srvtools.TransField transField9 = new Srvtools.TransField();
            Srvtools.TransKeyField transKeyField3 = new Srvtools.TransKeyField();
            Srvtools.TransKeyField transKeyField4 = new Srvtools.TransKeyField();
            Srvtools.Transaction transaction3 = new Srvtools.Transaction();
            Srvtools.TransField transField10 = new Srvtools.TransField();
            Srvtools.TransField transField11 = new Srvtools.TransField();
            Srvtools.TransField transField12 = new Srvtools.TransField();
            Srvtools.TransField transField13 = new Srvtools.TransField();
            Srvtools.TransField transField14 = new Srvtools.TransField();
            Srvtools.TransField transField15 = new Srvtools.TransField();
            Srvtools.TransField transField16 = new Srvtools.TransField();
            Srvtools.TransField transField17 = new Srvtools.TransField();
            Srvtools.TransField transField18 = new Srvtools.TransField();
            Srvtools.TransField transField19 = new Srvtools.TransField();
            Srvtools.TransField transField20 = new Srvtools.TransField();
            Srvtools.TransField transField21 = new Srvtools.TransField();
            Srvtools.TransField transField22 = new Srvtools.TransField();
            Srvtools.TransField transField23 = new Srvtools.TransField();
            Srvtools.TransField transField24 = new Srvtools.TransField();
            Srvtools.TransField transField25 = new Srvtools.TransField();
            Srvtools.KeyItem keyItem7 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem8 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem9 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem10 = new Srvtools.KeyItem();
            Srvtools.ColumnItem columnItem3 = new Srvtools.ColumnItem();
            Srvtools.ColumnItem columnItem4 = new Srvtools.ColumnItem();
            this.autoNumber1 = new Srvtools.AutoNumber(this.components);
            this.ucINVT_TX = new Srvtools.UpdateComponent(this.components);
            this.INVT_TX = new Srvtools.InfoCommand(this.components);
            this.infoConnection = new Srvtools.InfoConnection();
            this.ucMaster = new Srvtools.UpdateComponent(this.components);
            this.Master = new Srvtools.InfoCommand(this.components);
            this.serviceManager = new Srvtools.ServiceManager(this.components);
            this.Detail = new Srvtools.InfoCommand(this.components);
            this.idsRelation = new Srvtools.InfoDataSource(this.components);
            this.ucDetail = new Srvtools.UpdateComponent(this.components);
            this.ORD_D = new Srvtools.InfoCommand(this.components);
            this.NO_SHIP = new Srvtools.AutoNumber(this.components);
            this.trans = new Srvtools.InfoTransaction(this.components);
            this.MasterView = new Srvtools.InfoCommand(this.components);
            this.RPT_Master = new Srvtools.InfoCommand(this.components);
            this.RPT_Detail = new Srvtools.InfoCommand(this.components);
            this.infoDataSource1 = new Srvtools.InfoDataSource(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.INVT_TX)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoConnection)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Master)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Detail)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ORD_D)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.MasterView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Master)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Detail)).BeginInit();
            // 
            // autoNumber1
            // 
            this.autoNumber1.Active = true;
            this.autoNumber1.AutoNoID = "ID_WH_TRANS";
            this.autoNumber1.Description = "";
            this.autoNumber1.GetFixed = "W";
            this.autoNumber1.isNumFill = false;
            this.autoNumber1.Name = "autoNumber1";
            this.autoNumber1.Number = null;
            this.autoNumber1.NumDig = 7;
            this.autoNumber1.OldVersion = false;
            this.autoNumber1.OverFlow = true;
            this.autoNumber1.StartValue = 1;
            this.autoNumber1.Step = 1;
            this.autoNumber1.TargetColumn = "ID_WH_TRANS";
            this.autoNumber1.UpdateComp = this.ucINVT_TX;
            // 
            // ucINVT_TX
            // 
            this.ucINVT_TX.AutoTrans = true;
            this.ucINVT_TX.ExceptJoin = false;
            this.ucINVT_TX.LogInfo = null;
            this.ucINVT_TX.Name = "ucINVT_TX";
            this.ucINVT_TX.SelectCmd = this.INVT_TX;
            this.ucINVT_TX.ServerModify = true;
            this.ucINVT_TX.ServerModifyGetMax = false;
            this.ucINVT_TX.TransIsolationLevel = System.Data.IsolationLevel.ReadCommitted;
            this.ucINVT_TX.WhereMode = Srvtools.WhereModeType.Keyfields;
            // 
            // INVT_TX
            // 
            this.INVT_TX.CommandText = resources.GetString("INVT_TX.CommandText");
            this.INVT_TX.CommandTimeout = 30;
            this.INVT_TX.CommandType = System.Data.CommandType.Text;
            this.INVT_TX.EEPAlias = null;
            this.INVT_TX.InfoConnection = this.infoConnection;
            keyItem1.KeyName = "ID_WH_TRANS";
            this.INVT_TX.KeyFields.Add(keyItem1);
            this.INVT_TX.Name = "INVT_TX";
            this.INVT_TX.NotificationAutoEnlist = false;
            this.INVT_TX.SecExcept = null;
            this.INVT_TX.SecFieldName = null;
            this.INVT_TX.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.INVT_TX.SelectTop = 0;
            this.INVT_TX.SiteControl = false;
            this.INVT_TX.SiteFieldName = null;
            this.INVT_TX.Transaction = null;
            this.INVT_TX.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // infoConnection
            // 
            this.infoConnection.ConnectionType = Srvtools.ConnectionType.SqlClient;
            this.infoConnection.EEPAlias = "ERPS";
            // 
            // ucMaster
            // 
            this.ucMaster.AutoTrans = true;
            this.ucMaster.ExceptJoin = false;
            this.ucMaster.LogInfo = null;
            this.ucMaster.Name = "ucMaster";
            this.ucMaster.SelectCmd = this.Master;
            this.ucMaster.ServerModify = true;
            this.ucMaster.ServerModifyGetMax = false;
            this.ucMaster.TransIsolationLevel = System.Data.IsolationLevel.ReadCommitted;
            this.ucMaster.WhereMode = Srvtools.WhereModeType.Keyfields;
            // 
            // Master
            // 
            this.Master.CommandText = resources.GetString("Master.CommandText");
            this.Master.CommandTimeout = 30;
            this.Master.CommandType = System.Data.CommandType.Text;
            this.Master.EEPAlias = null;
            this.Master.InfoConnection = this.infoConnection;
            keyItem2.KeyName = "NO_SHIP";
            this.Master.KeyFields.Add(keyItem2);
            this.Master.Name = "Master";
            this.Master.NotificationAutoEnlist = false;
            this.Master.SecExcept = null;
            this.Master.SecFieldName = "";
            this.Master.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.Master.SelectTop = 0;
            this.Master.SiteControl = false;
            this.Master.SiteFieldName = "";
            this.Master.Transaction = null;
            this.Master.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // Detail
            // 
            this.Detail.CommandText = "select [GSM_SHIP_D].* from [GSM_SHIP_D]";
            this.Detail.CommandTimeout = 30;
            this.Detail.CommandType = System.Data.CommandType.Text;
            this.Detail.EEPAlias = null;
            this.Detail.InfoConnection = this.infoConnection;
            keyItem3.KeyName = "NO_SHIP";
            keyItem4.KeyName = "CN_SEQ";
            this.Detail.KeyFields.Add(keyItem3);
            this.Detail.KeyFields.Add(keyItem4);
            this.Detail.Name = "Detail";
            this.Detail.NotificationAutoEnlist = false;
            this.Detail.SecExcept = null;
            this.Detail.SecFieldName = "";
            this.Detail.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.Detail.SelectTop = 0;
            this.Detail.SiteControl = false;
            this.Detail.SiteFieldName = "";
            this.Detail.Transaction = null;
            this.Detail.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // idsRelation
            // 
            this.idsRelation.Detail = this.Detail;
            columnItem1.FieldName = "NO_SHIP";
            this.idsRelation.DetailColumns.Add(columnItem1);
            this.idsRelation.DynamicTableName = false;
            this.idsRelation.Master = this.Master;
            columnItem2.FieldName = "NO_SHIP";
            this.idsRelation.MasterColumns.Add(columnItem2);
            // 
            // ucDetail
            // 
            this.ucDetail.AutoTrans = true;
            this.ucDetail.ExceptJoin = false;
            this.ucDetail.LogInfo = null;
            this.ucDetail.Name = "ucDetail";
            this.ucDetail.SelectCmd = this.Detail;
            this.ucDetail.ServerModify = true;
            this.ucDetail.ServerModifyGetMax = false;
            this.ucDetail.TransIsolationLevel = System.Data.IsolationLevel.ReadCommitted;
            this.ucDetail.WhereMode = Srvtools.WhereModeType.Keyfields;
            // 
            // ORD_D
            // 
            this.ORD_D.CommandText = "select [GSO_ORD_D].* from [GSO_ORD_D]";
            this.ORD_D.CommandTimeout = 30;
            this.ORD_D.CommandType = System.Data.CommandType.Text;
            this.ORD_D.EEPAlias = null;
            this.ORD_D.InfoConnection = this.infoConnection;
            keyItem5.KeyName = "NO_ORDER";
            keyItem6.KeyName = "CN_SEQ";
            this.ORD_D.KeyFields.Add(keyItem5);
            this.ORD_D.KeyFields.Add(keyItem6);
            this.ORD_D.Name = "ORD_D";
            this.ORD_D.NotificationAutoEnlist = false;
            this.ORD_D.SecExcept = null;
            this.ORD_D.SecFieldName = null;
            this.ORD_D.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.ORD_D.SelectTop = 0;
            this.ORD_D.SiteControl = false;
            this.ORD_D.SiteFieldName = null;
            this.ORD_D.Transaction = null;
            this.ORD_D.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // NO_SHIP
            // 
            this.NO_SHIP.Active = true;
            this.NO_SHIP.AutoNoID = "NO_SHIP";
            this.NO_SHIP.Description = null;
            this.NO_SHIP.GetFixed = "GetFixed_SHIP()";
            this.NO_SHIP.isNumFill = false;
            this.NO_SHIP.Name = "NO_SHIP";
            this.NO_SHIP.Number = null;
            this.NO_SHIP.NumDig = 4;
            this.NO_SHIP.OldVersion = false;
            this.NO_SHIP.OverFlow = true;
            this.NO_SHIP.StartValue = 1;
            this.NO_SHIP.Step = 1;
            this.NO_SHIP.TargetColumn = "NO_SHIP";
            this.NO_SHIP.UpdateComp = this.ucMaster;
            // 
            // trans
            // 
            this.trans.Name = "trans";
            transaction1.AutoNumber = null;
            transField1.DesField = "QT_SHIP_END";
            transField1.DesValue = null;
            transField1.FieldType = null;
            transField1.FieldTypeName = null;
            transField1.ReadOnly = false;
            transField1.SrcField = "QT_QTY";
            transField1.SrcGetValue = null;
            transField1.SrcValue = null;
            transField1.UpdateMode = Srvtools.UpdateMode.Inc;
            transaction1.TransFields.Add(transField1);
            transKeyField1.DesField = "NO_ORDER";
            transKeyField1.DesValue = null;
            transKeyField1.FieldType = null;
            transKeyField1.FieldTypeName = null;
            transKeyField1.ReadOnly = false;
            transKeyField1.SrcField = "NO_ORDER";
            transKeyField1.SrcGetValue = null;
            transKeyField1.SrcValue = null;
            transKeyField1.WhereMode = Srvtools.WhereMode.Both;
            transKeyField2.DesField = "CN_SEQ";
            transKeyField2.DesValue = null;
            transKeyField2.FieldType = null;
            transKeyField2.FieldTypeName = null;
            transKeyField2.ReadOnly = false;
            transKeyField2.SrcField = "CN_SEQ";
            transKeyField2.SrcGetValue = null;
            transKeyField2.SrcValue = null;
            transKeyField2.WhereMode = Srvtools.WhereMode.WhereOnly;
            transaction1.TransKeyFields.Add(transKeyField1);
            transaction1.TransKeyFields.Add(transKeyField2);
            transaction1.TransMode = Srvtools.TransMode.AutoAppend;
            transaction1.TransStep = 0;
            transaction1.TransTableName = "GSO_ORD_D";
            transaction1.WhenDelete = true;
            transaction1.WhenInsert = true;
            transaction1.WhenUpdate = true;
            transaction2.AutoNumber = null;
            transField2.DesField = "ID_WH";
            transField2.DesValue = null;
            transField2.FieldType = null;
            transField2.FieldTypeName = null;
            transField2.ReadOnly = false;
            transField2.SrcField = "";
            transField2.SrcGetValue = "GetWH()";
            transField2.SrcValue = null;
            transField2.UpdateMode = Srvtools.UpdateMode.Replace;
            transField3.DesField = "NO_ITEM";
            transField3.DesValue = null;
            transField3.FieldType = null;
            transField3.FieldTypeName = null;
            transField3.ReadOnly = false;
            transField3.SrcField = "NO_ITEM";
            transField3.SrcGetValue = null;
            transField3.SrcValue = null;
            transField3.UpdateMode = Srvtools.UpdateMode.Replace;
            transField4.DesField = "QT_ON_HAND";
            transField4.DesValue = null;
            transField4.FieldType = null;
            transField4.FieldTypeName = null;
            transField4.ReadOnly = false;
            transField4.SrcField = "QT_QTY";
            transField4.SrcGetValue = null;
            transField4.SrcValue = null;
            transField4.UpdateMode = Srvtools.UpdateMode.Dec;
            transField5.DesField = "PR_COST";
            transField5.DesValue = null;
            transField5.FieldType = null;
            transField5.FieldTypeName = null;
            transField5.ReadOnly = false;
            transField5.SrcField = "PR_SALES";
            transField5.SrcGetValue = null;
            transField5.SrcValue = null;
            transField5.UpdateMode = Srvtools.UpdateMode.Replace;
            transField6.DesField = "NO_ORDER";
            transField6.DesValue = null;
            transField6.FieldType = null;
            transField6.FieldTypeName = null;
            transField6.ReadOnly = false;
            transField6.SrcField = null;
            transField6.SrcGetValue = "0";
            transField6.SrcValue = null;
            transField6.UpdateMode = Srvtools.UpdateMode.Replace;
            transField7.DesField = "UPDATE_USER";
            transField7.DesValue = null;
            transField7.FieldType = null;
            transField7.FieldTypeName = null;
            transField7.ReadOnly = false;
            transField7.SrcField = null;
            transField7.SrcGetValue = "GetUser()";
            transField7.SrcValue = null;
            transField7.UpdateMode = Srvtools.UpdateMode.Replace;
            transField8.DesField = "UPDATE_DATE";
            transField8.DesValue = null;
            transField8.FieldType = null;
            transField8.FieldTypeName = null;
            transField8.ReadOnly = false;
            transField8.SrcField = null;
            transField8.SrcGetValue = "GetToday()";
            transField8.SrcValue = null;
            transField8.UpdateMode = Srvtools.UpdateMode.Replace;
            transField9.DesField = "UPDATE_TIME";
            transField9.DesValue = null;
            transField9.FieldType = null;
            transField9.FieldTypeName = null;
            transField9.ReadOnly = false;
            transField9.SrcField = null;
            transField9.SrcGetValue = "GetNowTime()";
            transField9.SrcValue = null;
            transField9.UpdateMode = Srvtools.UpdateMode.Replace;
            transaction2.TransFields.Add(transField2);
            transaction2.TransFields.Add(transField3);
            transaction2.TransFields.Add(transField4);
            transaction2.TransFields.Add(transField5);
            transaction2.TransFields.Add(transField6);
            transaction2.TransFields.Add(transField7);
            transaction2.TransFields.Add(transField8);
            transaction2.TransFields.Add(transField9);
            transKeyField3.DesField = "ID_WH";
            transKeyField3.DesValue = null;
            transKeyField3.FieldType = null;
            transKeyField3.FieldTypeName = null;
            transKeyField3.ReadOnly = false;
            transKeyField3.SrcField = "";
            transKeyField3.SrcGetValue = "GetWH()";
            transKeyField3.SrcValue = null;
            transKeyField3.WhereMode = Srvtools.WhereMode.WhereOnly;
            transKeyField4.DesField = "NO_ITEM";
            transKeyField4.DesValue = null;
            transKeyField4.FieldType = null;
            transKeyField4.FieldTypeName = null;
            transKeyField4.ReadOnly = false;
            transKeyField4.SrcField = "NO_ITEM";
            transKeyField4.SrcGetValue = null;
            transKeyField4.SrcValue = null;
            transKeyField4.WhereMode = Srvtools.WhereMode.WhereOnly;
            transaction2.TransKeyFields.Add(transKeyField3);
            transaction2.TransKeyFields.Add(transKeyField4);
            transaction2.TransMode = Srvtools.TransMode.AutoAppend;
            transaction2.TransStep = 1;
            transaction2.TransTableName = "B_WH_STATE";
            transaction2.WhenDelete = false;
            transaction2.WhenInsert = true;
            transaction2.WhenUpdate = true;
            transaction3.AutoNumber = this.autoNumber1;
            transField10.DesField = "NO_ITEM";
            transField10.DesValue = null;
            transField10.FieldType = null;
            transField10.FieldTypeName = null;
            transField10.ReadOnly = false;
            transField10.SrcField = "NO_ITEM";
            transField10.SrcGetValue = null;
            transField10.SrcValue = null;
            transField10.UpdateMode = Srvtools.UpdateMode.Replace;
            transField11.DesField = "QT_QTY";
            transField11.DesValue = null;
            transField11.FieldType = null;
            transField11.FieldTypeName = null;
            transField11.ReadOnly = false;
            transField11.SrcField = "QT_QTY";
            transField11.SrcGetValue = null;
            transField11.SrcValue = null;
            transField11.UpdateMode = Srvtools.UpdateMode.Dec;
            transField12.DesField = "PR_COST";
            transField12.DesValue = null;
            transField12.FieldType = null;
            transField12.FieldTypeName = null;
            transField12.ReadOnly = false;
            transField12.SrcField = "PR_SALES";
            transField12.SrcGetValue = null;
            transField12.SrcValue = null;
            transField12.UpdateMode = Srvtools.UpdateMode.Replace;
            transField13.DesField = "AM_COST";
            transField13.DesValue = null;
            transField13.FieldType = null;
            transField13.FieldTypeName = null;
            transField13.ReadOnly = false;
            transField13.SrcField = "AM_SALES";
            transField13.SrcGetValue = null;
            transField13.SrcValue = null;
            transField13.UpdateMode = Srvtools.UpdateMode.Replace;
            transField14.DesField = "NO_SOURCE";
            transField14.DesValue = null;
            transField14.FieldType = null;
            transField14.FieldTypeName = null;
            transField14.ReadOnly = false;
            transField14.SrcField = "NO_SHIP";
            transField14.SrcGetValue = null;
            transField14.SrcValue = null;
            transField14.UpdateMode = Srvtools.UpdateMode.Replace;
            transField15.DesField = "CREATE_USER";
            transField15.DesValue = null;
            transField15.FieldType = null;
            transField15.FieldTypeName = null;
            transField15.ReadOnly = false;
            transField15.SrcField = null;
            transField15.SrcGetValue = "GetUser()";
            transField15.SrcValue = null;
            transField15.UpdateMode = Srvtools.UpdateMode.Replace;
            transField16.DesField = "CREATE_DATE";
            transField16.DesValue = null;
            transField16.FieldType = null;
            transField16.FieldTypeName = null;
            transField16.ReadOnly = false;
            transField16.SrcField = null;
            transField16.SrcGetValue = "GetToday()";
            transField16.SrcValue = null;
            transField16.UpdateMode = Srvtools.UpdateMode.Replace;
            transField17.DesField = "CREATE_TIME";
            transField17.DesValue = null;
            transField17.FieldType = null;
            transField17.FieldTypeName = null;
            transField17.ReadOnly = false;
            transField17.SrcField = null;
            transField17.SrcGetValue = "GetNowTime()";
            transField17.SrcValue = null;
            transField17.UpdateMode = Srvtools.UpdateMode.Replace;
            transField18.DesField = "UPDATE_USER";
            transField18.DesValue = null;
            transField18.FieldType = null;
            transField18.FieldTypeName = null;
            transField18.ReadOnly = false;
            transField18.SrcField = null;
            transField18.SrcGetValue = "GetUser()";
            transField18.SrcValue = null;
            transField18.UpdateMode = Srvtools.UpdateMode.Replace;
            transField19.DesField = "UPDATE_DATE";
            transField19.DesValue = null;
            transField19.FieldType = null;
            transField19.FieldTypeName = null;
            transField19.ReadOnly = false;
            transField19.SrcField = null;
            transField19.SrcGetValue = "GetToday()";
            transField19.SrcValue = null;
            transField19.UpdateMode = Srvtools.UpdateMode.Replace;
            transField20.DesField = "UPDATE_TIME";
            transField20.DesValue = null;
            transField20.FieldType = null;
            transField20.FieldTypeName = null;
            transField20.ReadOnly = false;
            transField20.SrcField = null;
            transField20.SrcGetValue = "GetNowTime()";
            transField20.SrcValue = null;
            transField20.UpdateMode = Srvtools.UpdateMode.Replace;
            transField21.DesField = "ID_WH";
            transField21.DesValue = null;
            transField21.FieldType = null;
            transField21.FieldTypeName = null;
            transField21.ReadOnly = false;
            transField21.SrcField = null;
            transField21.SrcGetValue = "GetWH()";
            transField21.SrcValue = null;
            transField21.UpdateMode = Srvtools.UpdateMode.Replace;
            transField22.DesField = "DT_VOU";
            transField22.DesValue = null;
            transField22.FieldType = null;
            transField22.FieldTypeName = null;
            transField22.ReadOnly = false;
            transField22.SrcField = null;
            transField22.SrcGetValue = "GetDT()";
            transField22.SrcValue = null;
            transField22.UpdateMode = Srvtools.UpdateMode.Replace;
            transField23.DesField = "CD_INVT_TX";
            transField23.DesValue = null;
            transField23.FieldType = null;
            transField23.FieldTypeName = null;
            transField23.ReadOnly = false;
            transField23.SrcField = null;
            transField23.SrcGetValue = "GetINVT()";
            transField23.SrcValue = null;
            transField23.UpdateMode = Srvtools.UpdateMode.Replace;
            transField24.DesField = "NO_ORDER";
            transField24.DesValue = null;
            transField24.FieldType = null;
            transField24.FieldTypeName = null;
            transField24.ReadOnly = false;
            transField24.SrcField = null;
            transField24.SrcGetValue = "0";
            transField24.SrcValue = null;
            transField24.UpdateMode = Srvtools.UpdateMode.Replace;
            transField25.DesField = "NO_INQ";
            transField25.DesValue = null;
            transField25.FieldType = null;
            transField25.FieldTypeName = null;
            transField25.ReadOnly = false;
            transField25.SrcField = null;
            transField25.SrcGetValue = "GetINQ()";
            transField25.SrcValue = null;
            transField25.UpdateMode = Srvtools.UpdateMode.Replace;
            transaction3.TransFields.Add(transField10);
            transaction3.TransFields.Add(transField11);
            transaction3.TransFields.Add(transField12);
            transaction3.TransFields.Add(transField13);
            transaction3.TransFields.Add(transField14);
            transaction3.TransFields.Add(transField15);
            transaction3.TransFields.Add(transField16);
            transaction3.TransFields.Add(transField17);
            transaction3.TransFields.Add(transField18);
            transaction3.TransFields.Add(transField19);
            transaction3.TransFields.Add(transField20);
            transaction3.TransFields.Add(transField21);
            transaction3.TransFields.Add(transField22);
            transaction3.TransFields.Add(transField23);
            transaction3.TransFields.Add(transField24);
            transaction3.TransFields.Add(transField25);
            transaction3.TransMode = Srvtools.TransMode.AlwaysAppend;
            transaction3.TransStep = 0;
            transaction3.TransTableName = "LIM_INVT_TX";
            transaction3.WhenDelete = false;
            transaction3.WhenInsert = true;
            transaction3.WhenUpdate = true;
            this.trans.Transactions.Add(transaction1);
            this.trans.Transactions.Add(transaction2);
            this.trans.Transactions.Add(transaction3);
            this.trans.UpdateComp = this.ucDetail;
            // 
            // MasterView
            // 
            this.MasterView.CommandText = "select [GSM_SHIP_M].* from [GSM_SHIP_M] where GSM_SHIP_M.CD_SHIP=\'1\'";
            this.MasterView.CommandTimeout = 30;
            this.MasterView.CommandType = System.Data.CommandType.Text;
            this.MasterView.EEPAlias = null;
            this.MasterView.InfoConnection = this.infoConnection;
            keyItem7.KeyName = "NO_SHIP";
            this.MasterView.KeyFields.Add(keyItem7);
            this.MasterView.Name = "MasterView";
            this.MasterView.NotificationAutoEnlist = false;
            this.MasterView.SecExcept = null;
            this.MasterView.SecFieldName = null;
            this.MasterView.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.MasterView.SelectTop = 0;
            this.MasterView.SiteControl = false;
            this.MasterView.SiteFieldName = null;
            this.MasterView.Transaction = null;
            this.MasterView.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // RPT_Master
            // 
            this.RPT_Master.CommandText = resources.GetString("RPT_Master.CommandText");
            this.RPT_Master.CommandTimeout = 30;
            this.RPT_Master.CommandType = System.Data.CommandType.Text;
            this.RPT_Master.EEPAlias = null;
            this.RPT_Master.InfoConnection = this.infoConnection;
            keyItem8.KeyName = "NO_SHIP";
            this.RPT_Master.KeyFields.Add(keyItem8);
            this.RPT_Master.Name = "RPT_Master";
            this.RPT_Master.NotificationAutoEnlist = false;
            this.RPT_Master.SecExcept = null;
            this.RPT_Master.SecFieldName = null;
            this.RPT_Master.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.RPT_Master.SelectTop = 0;
            this.RPT_Master.SiteControl = false;
            this.RPT_Master.SiteFieldName = null;
            this.RPT_Master.Transaction = null;
            this.RPT_Master.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // RPT_Detail
            // 
            this.RPT_Detail.CommandText = "select [GSM_SHIP_D].* from [GSM_SHIP_D]";
            this.RPT_Detail.CommandTimeout = 30;
            this.RPT_Detail.CommandType = System.Data.CommandType.Text;
            this.RPT_Detail.EEPAlias = null;
            this.RPT_Detail.InfoConnection = this.infoConnection;
            keyItem9.KeyName = "NO_SHIP";
            keyItem10.KeyName = "CN_SEQ";
            this.RPT_Detail.KeyFields.Add(keyItem9);
            this.RPT_Detail.KeyFields.Add(keyItem10);
            this.RPT_Detail.Name = "RPT_Detail";
            this.RPT_Detail.NotificationAutoEnlist = false;
            this.RPT_Detail.SecExcept = null;
            this.RPT_Detail.SecFieldName = null;
            this.RPT_Detail.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.RPT_Detail.SelectTop = 0;
            this.RPT_Detail.SiteControl = false;
            this.RPT_Detail.SiteFieldName = null;
            this.RPT_Detail.Transaction = null;
            this.RPT_Detail.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // infoDataSource1
            // 
            this.infoDataSource1.Detail = this.RPT_Detail;
            columnItem3.FieldName = "NO_SHIP";
            this.infoDataSource1.DetailColumns.Add(columnItem3);
            this.infoDataSource1.DynamicTableName = false;
            this.infoDataSource1.Master = this.RPT_Master;
            columnItem4.FieldName = "NO_SHIP";
            this.infoDataSource1.MasterColumns.Add(columnItem4);
            ((System.ComponentModel.ISupportInitialize)(this.INVT_TX)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoConnection)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Master)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Detail)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ORD_D)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.MasterView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Master)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Detail)).EndInit();

        }
        #endregion
      
             


    }
}
